using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// PhongBan object for NHibernate mapped table Categories.
    /// </summary>
    [Serializable]
    public class PhongBan : DomainObject<System.String>
    {
        private System.String _TenPhongBan;
        private System.Byte _ThuTu;
        private System.Boolean _TrangThai = true;

        public PhongBan()
        {
            base.ID = Guid.NewGuid().ToString().ToUpper();
        }

        public PhongBan(System.String id)
        {
            base.ID = id;
        }

        public virtual System.String TenPhongBan
        {
            get { return _TenPhongBan; }
            set { _TenPhongBan = value; }
        }

        public virtual System.Boolean TrangThai
        {
            get { return _TrangThai; }
            set { _TrangThai = value; }
        }        

        
        public virtual System.Byte ThuTu
        {
            get { return _ThuTu; }
            set { _ThuTu = value; }
        }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

    }
}
